import {typeList} from './typeList'

Page({

  /**
   * 页面的初始数据
   */
  data: {
    typeList
  },
  goToQuestionPage(e){
    console.log(e.target.dataset.type);
    wx.navigateTo({
      url: `/pages/question/question?type=${e.target.dataset.type}`,
    })
  },
  goToSearch(){
    wx.navigateTo({
      url: `/pages/search/search`,
    })
  },
  goToAdvertisement(){
    wx.navigateTo({
      url: `/pages/advertisement/advertisement`,
    })
  }
})